package com.cloud.salon.common.base.entity.business;

import com.cloud.salon.common.base.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Description 优惠实体类
 * @Author wolf--LZH
 * @CreateDate 2019/5/17 0017 下午 3:55
 */

@Data
@Entity
@Table(name="preferential")
public class Preference extends BaseEntity {

    // 所属会员
    @Column(nullable = false)
    private Integer accountId;
    // 优惠类型
    @Column(nullable = false)
    private Integer type;
    // 优惠项目
    private Integer itemId;

    // 优惠折扣
    private Double discount;
    // 优惠次数
    private Integer Times;
    // 代金券金额
    private Double voucher;

    // 最低消费
    @Column(nullable = false)
    private Double minConsume;

}
